package com.example.sangong.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("菜单返回实体")
public class MenuItemResp {


    /**
     * 菜单ID
     */
    @ApiModelProperty(value = "菜单ID")
    private Long id;

    /**
     * 菜单名称
     */
    @ApiModelProperty(value = "菜单名称")
    private String name;

    /**
     * 菜单对应的URL
     */
    @ApiModelProperty(value = "菜单对应的URL")
    private String url;

    /**
     * 菜单图标
     */
    @ApiModelProperty(value = "菜单图标")
    private String menuIcon;

    /**
     * 菜单的层级
     */
    @ApiModelProperty(value = "菜单的层级")
    private Integer level;

    /**
     * 菜单的排序序号
     */
    @ApiModelProperty(value = "菜单的排序序号")
    private Integer orderNum;

    /**
     * 菜单的父节点ID
     */
    @ApiModelProperty(value = "菜单的父节点ID")
    private Long parentId;

    /**
     * 菜单路径
     */
    @ApiModelProperty(value = "菜单路径")
    private String menuPath;


    @ApiModelProperty(value = "子菜单")
    private List<MenuItemResp> child;
}
